package com.kefu.chat.model;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@TableName(value="chat_admin_status")
@ApiModel(description = "客服状态切换")
public class ChatAdminStatus implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id",type=IdType.ASSIGN_ID)
    @NotEmpty
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(value = "租户")
    private String tenantId;

    /**
     * 坐席
     */
    @TableField(value = "admin_id")
    @ApiModelProperty(value = "坐席")
    private String adminId;

    /**
     * 客服状态：0离线，1在线，2忙碌
     */
    @TableField(value = "status_type")
    @ApiModelProperty(value = "客服状态：0离线，1在线，2忙碌")
    private Integer statusType;

    /**
     * 客服状态：0离线，1在线，2忙碌
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "客服状态：0离线，1在线，2忙碌")
    private String statusName;

    /**
     * 状态时间
     */
    @TableField(value = "status_time")
    @ApiModelProperty(value = "状态时间")
    private Long statusTime;

    /**
     * 状态时长，秒
     */
    @TableField(value = "status_duration")
    @ApiModelProperty(value = "状态时长，秒")
    private Long statusDuration;

    /**
     * 状态时长更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "状态时长更新时间")
    private Long updateTime;


    @ApiModelProperty(value = "坐席名字")
    @TableField(exist=false)
    private String adminName;
    private static final long serialVersionUID = 1L;
}